package com.it.sonny.edpcommon.enums;

public enum ErrorEnum {
    USER_NOT_FOUND("USR-404-001", "user not found"),
    DB_ERROR("SYS-500-0001", "数据库异常"),
    ERROR_TEXT("TEXT-500-0000", "异常测试");

    private final String code;
    private final String message;

    ErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
